package com.jy.users.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jy.common.annotation.Excel;
import com.jy.common.core.domain.BaseEntity;

/**
 * 图书用户管理对象 users
 * 
 * @author ruoyi
 * @date 2025-05-29
 */
public class Users extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户唯一标识，自增主键 */
    private Long userId;

    /** 用户名，用于登录和显示，需保持唯一 */
    @Excel(name = "用户名，用于登录和显示，需保持唯一")
    private String username;

    /** 电子邮箱，用于注册验证和通知，需保持唯一 */
    @Excel(name = "电子邮箱，用于注册验证和通知，需保持唯一")
    private String email;

    /** 电话号码，用于联系用户，需保持唯一 */
    @Excel(name = "电话号码，用于联系用户，需保持唯一")
    private String phone;

    /** 用户注册日期和时间，记录用户创建账户的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "用户注册日期和时间，记录用户创建账户的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registrationDate;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }

    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setRegistrationDate(Date registrationDate) 
    {
        this.registrationDate = registrationDate;
    }

    public Date getRegistrationDate() 
    {
        return registrationDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("username", getUsername())
            .append("email", getEmail())
            .append("phone", getPhone())
            .append("registrationDate", getRegistrationDate())
            .toString();
    }
}
